/*
 * CondVaInt.cpp
 *
 *  Created on: 04.10.2012
 *      Author: Lapchinskiy
 */

#include "CondVaInt.h"
int* CondVaInt::operator +(int* CondVaInt) {
	return new int(*value + *CondVaInt);

}

int* CondVaInt::operator -(int* operand)
{
	return new int(*(this->value) - *operand);
}

CondVaInt::CondVaInt(int* value) {
	this->value = value;
}

CondVaInt::CondVaInt() {
}

bool CondVaInt::operator ==(int* CondVaInt) {
	//return new int(this->*value == *CondVaInt);
}
CondVaInt::~CondVaInt() {
	delete value;
}

ErrorCode CondVaInt::setOpFunc(int*(*opFunc)(int*)) {
	this->opFunc = opFunc;
	return NO_ERRORx;
}

int* CondVaInt::test(int* temp) {
	return temp;
}


